package com.privatework.backedserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * 开启自动更改时间等
 * @author johnny
 * @create 2020-07-10 下午3:52
 */
@EnableJpaAuditing
@ComponentScan(value = "com.privatework.*")
@EntityScan(basePackages = {"com.privatework.*"})
@EnableJpaRepositories(basePackages = {"com.privatework.*"})
@EnableConfigurationProperties
/**
 * 开起定时任务
 */
@EnableScheduling
@SpringBootApplication
public class BackedServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(BackedServerApplication.class);
    }
}